﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Crosland.Automotriz.Core;

namespace Crosland.Automotriz.Data.Dao.Linq
{
    public class clsImagenSliderDAO
    {
        private AutomotrizEntities ContextoDeObjs = new AutomotrizEntities();


        public List<T_LOG_MATERIAL_IMAGEN> ListaImagenSlider(int intDdMaterial)
        {

            List<T_LOG_MATERIAL_IMAGEN> lista = new List<T_LOG_MATERIAL_IMAGEN>();
            try
            {
                var q = from img in ContextoDeObjs.T_LOG_MATERIAL_IMAGEN
                        where img.ID_MATERIAL == intDdMaterial
                        select img;
                lista = q.ToList();

            }
            catch (Exception ex)
            {

                throw ex;
            }

            return lista;
        }

    }
}
